home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / Code / WINDOWS / DIALOGS / _ai358.as next >
Encoding:
Text File  |  2010-05-14  |  5.5 KB  |  163 lines

  1. package Code.WINDOWS.DIALOGS
  2. {
  3.    import Code.LIB.SOUND._bu111;
  4.    import Code.LIB._cg33;
  5.    import Code.LIB._ct751;
  6.    import Code.LIB._gt710;
  7.    import Code.LIB._my111;
  8.    import Code.LIB._wy567;
  9.    import Code.OPTIONS._gs337;
  10.    import Code.WINDOWS._tc365;
  11.    import Code._fi197;
  12.    import flash.events.Event;
  13.    import flash.events.MouseEvent;
  14.    
  15.    public class _ai358 extends _gt710
  16.    {
  17.       public var iASLButton:_ct751;
  18.       
  19.       public var iOk:_ct751;
  20.       
  21.       private var iMVolume:int;
  22.       
  23.       public var iCancel:_ct751;
  24.       
  25.       private var iSVBckup:int;
  26.       
  27.       public var iASRButton:_ct751;
  28.       
  29.       public var iAMRButton:_ct751;
  30.       
  31.       public var iMVLabel:_wy567;
  32.       
  33.       public var iAMLButton:_ct751;
  34.       
  35.       private var iMVBckup:int;
  36.       
  37.       public var iSVLabel:_wy567;
  38.       
  39.       private var iSVolume:int;
  40.       
  41.       public function _ai358()
  42.       {
  43.          var _loc1_:Array = null;
  44.          var _loc2_:_tc365 = null;
  45.          this.iSVolume = _cg33._ss555[1].prSVolume * 100;
  46.          this.iMVolume = _cg33._ss555[1].prMVolume * 100;
  47.          this.iSVBckup = this.iSVolume;
  48.          this.iMVBckup = this.iMVolume;
  49.          _loc1_ = [[_fi197._mo171,_gs337.cAqua,610,470,false,0.5,_gs337.TTV2Frame,-108,-15,null,true],[_fi197._xy367,_gs337.iLanguage.strOptions,_gs337.cOrange,50,_my111.SmallText,130,5,null,true],[_fi197._xy367,_gs337.iLanguage.strSVolume,_gs337.cPink,44,_my111.SmallText,20,75,null,true],[_fi197._xy367,this.iSVolume <= 0 ? "off" : this.iSVolume.toString(),_gs337.cOrange,40,_my111.BigText,235,70,"iSVLabel",true],[_fi197._cf377,40,40,"<",_gs337.cOrange,50,170,70,"iASLButton",true],[_fi197._cf377,40,40,">",_gs337.cOrange,50,290,70,"iASRButton",true],[_fi197._xy367,_gs337.iLanguage.strMVolume,_gs337.cPink,44,_my111.SmallText,20,153,null,true],[_fi197._xy367,this.iMVolume <= 0 ? "off" : this.iMVolume.toString(),_gs337.cOrange,40,_my111.BigText,235,150,"iMVLabel",true],[_fi197._cf377,40,40,"<",_gs337.cOrange,50,170,150,"iAMLButton",true],[_fi197._cf377,40,40,">",_gs337.cOrange,50,290,150,"iAMRButton",true],[_fi197._tr788,_gs337.iLanguage.strOk,_gs337.cGellAqua,110,48,30,_gs337.cWhite,150,380,"iOk",true]
  50.          ,[_fi197._tr788,_gs337.iLanguage.strCancel,_gs337.cGellRed,110,48,30,_gs337.cWhite,320,380,"iCancel",true]];
  51.          super(_loc1_);
  52.          this._xe768(120,25);
  53.          _loc2_ = new _tc365(true);
  54.          addChild(_loc2_);
  55.          _loc2_._xe768(0,200);
  56.       }
  57.       
  58.       override public function _ba289(param1:MouseEvent) : void
  59.       {
  60.          if(param1.target == this.iAMRButton._en365)
  61.          {
  62.             this.iMVolume += 10;
  63.             if(this.iMVolume > 100)
  64.             {
  65.                this.iMVolume = 100;
  66.             }
  67.             this.iMVLabel.Text = this.iMVolume.toString();
  68.             _bu111._yt336 = this.iMVolume / 100;
  69.          }
  70.          if(param1.target == this.iAMLButton._en365)
  71.          {
  72.             this.iMVolume -= 10;
  73.             if(this.iMVolume <= 0)
  74.             {
  75.                this.iMVolume = 0;
  76.             }
  77.             if(this.iMVolume <= 0)
  78.             {
  79.                this.iMVLabel.Text = "off";
  80.             }
  81.             else
  82.             {
  83.                this.iMVLabel.Text = this.iMVolume.toString();
  84.             }
  85.             _bu111._yt336 = this.iMVolume / 100;
  86.          }
  87.          if(param1.target == this.iASRButton._en365)
  88.          {
  89.             this.iSVolume += 10;
  90.             if(this.iSVolume > 100)
  91.             {
  92.                this.iSVolume = 100;
  93.             }
  94.             this.iSVLabel.Text = this.iSVolume.toString();
  95.             _bu111._uk57 = this.iSVolume / 100;
  96.          }
  97.          if(param1.target == this.iASLButton._en365)
  98.          {
  99.             this.iSVolume -= 10;
  100.             if(this.iSVolume < 0)
  101.             {
  102.                this.iSVolume = 0;
  103.             }
  104.             if(this.iSVolume <= 0)
  105.             {
  106.                this.iSVLabel.Text = "off";
  107.             }
  108.             else
  109.             {
  110.                this.iSVLabel.Text = this.iSVolume.toString();
  111.             }
  112.             _bu111._uk57 = this.iSVolume / 100;
  113.             _bu111._wu209("newbug");
  114.          }
  115.          if(param1.target == this.iOk._en365)
  116.          {
  117.             _cg33._ss555[1].prMVolume = this.iMVolume / 100;
  118.             _cg33._ss555[1].prSVolume = this.iSVolume / 100;
  119.             _cg33._gk638();
  120.             _bu111._yt336 = this.iMVolume / 100;
  121.             _bu111._uk57 = this.iSVolume / 100;
  122.             this.hide();
  123.          }
  124.          if(param1.target == this.iCancel._en365)
  125.          {
  126.             _bu111._yt336 = this.iMVBckup / 100;
  127.             _bu111._uk57 = this.iSVBckup / 100;
  128.             this.hide();
  129.          }
  130.       }
  131.       
  132.       override public function onEnterFrame(param1:Event) : void
  133.       {
  134.          super.onEnterFrame(param1);
  135.          if(int(_bu111._yt336 * 100) != iMVolume)
  136.          {
  137.             this.iMVolume = _bu111._yt336 * 100;
  138.             if(this.iMVolume <= 0)
  139.             {
  140.                this.iMVLabel.Text = "off";
  141.             }
  142.             else
  143.             {
  144.                this.iMVLabel.Text = this.iMVolume.toString();
  145.             }
  146.          }
  147.          if(int(_bu111._uk57 * 100) != iSVolume)
  148.          {
  149.             this.iSVolume = _bu111._uk57 * 100;
  150.             if(this.iSVolume <= 0)
  151.             {
  152.                this.iSVLabel.Text = "off";
  153.             }
  154.             else
  155.             {
  156.                this.iSVLabel.Text = this.iSVolume.toString();
  157.             }
  158.          }
  159.       }
  160.    }
  161. }
  162.  
  163.